.class final Lnet/tsapps/topdeals/bb;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private synthetic a:Lnet/tsapps/topdeals/PreferencesActivity;


# direct methods
.method constructor <init>(Lnet/tsapps/topdeals/PreferencesActivity;)V
    .locals 0

    iput-object p1, p0, Lnet/tsapps/topdeals/bb;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final onClick(Landroid/view/View;)V
    .locals 3

    const/4 v1, 0x1

    iget-object v0, p0, Lnet/tsapps/topdeals/bb;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-static {v0}, Lnet/tsapps/topdeals/PreferencesActivity;->j(Lnet/tsapps/topdeals/PreferencesActivity;)V

    iget-object v0, p0, Lnet/tsapps/topdeals/bb;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-static {v0}, Lnet/tsapps/topdeals/PreferencesActivity;->d(Lnet/tsapps/topdeals/PreferencesActivity;)Lnet/tsapps/topdeals/e/d;

    move-result-object v2

    iget-object v0, p0, Lnet/tsapps/topdeals/bb;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-static {v0}, Lnet/tsapps/topdeals/PreferencesActivity;->d(Lnet/tsapps/topdeals/PreferencesActivity;)Lnet/tsapps/topdeals/e/d;

    move-result-object v0

    iget-boolean v0, v0, Lnet/tsapps/topdeals/e/d;->a:Z

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    iput-boolean v0, v2, Lnet/tsapps/topdeals/e/d;->a:Z

    iget-object v0, p0, Lnet/tsapps/topdeals/bb;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-static {v0}, Lnet/tsapps/topdeals/PreferencesActivity;->a(Lnet/tsapps/topdeals/PreferencesActivity;)Lnet/tsapps/topdeals/h/a;

    move-result-object v0

    iget-object v2, p0, Lnet/tsapps/topdeals/bb;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-static {v2}, Lnet/tsapps/topdeals/PreferencesActivity;->d(Lnet/tsapps/topdeals/PreferencesActivity;)Lnet/tsapps/topdeals/e/d;

    move-result-object v2

    iget-boolean v2, v2, Lnet/tsapps/topdeals/e/d;->a:Z

    invoke-virtual {v0, v2}, Lnet/tsapps/topdeals/h/a;->c(Z)V

    iget-object v0, p0, Lnet/tsapps/topdeals/bb;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-static {v0}, Lnet/tsapps/topdeals/PreferencesActivity;->o(Lnet/tsapps/topdeals/PreferencesActivity;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iget-object v1, p0, Lnet/tsapps/topdeals/bb;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-static {v1}, Lnet/tsapps/topdeals/PreferencesActivity;->d(Lnet/tsapps/topdeals/PreferencesActivity;)Lnet/tsapps/topdeals/e/d;

    move-result-object v1

    iget-boolean v1, v1, Lnet/tsapps/topdeals/e/d;->a:Z

    if-eqz v1, :cond_1

    const v1, 0x7f020037

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    :goto_1
    return-void

    :cond_0
    move v0, v1

    goto :goto_0

    :cond_1
    const v1, 0x7f020036

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_1
.end method
